#include "doubleLinkListQueue.h"
#include <stdio.h>
#define BUFFER_SIZE 5
int main()
{
    DoubleLinkListQueue *queue = NULL;
    doublelinklistQueueInit(&queue);
    int buffer[BUFFER_SIZE] = {11, 22, 33, 4, 55};
    for (int idx = 0; idx < BUFFER_SIZE; idx++)
    {
        doubleLinkListQueuePush(queue, (void *)&buffer[idx]);
    }
    int size = 0;
    doubleLinkListQueueSize(queue, &size);
    printf("size=%d", size);
    int *val = NULL;
    while (!whetherDoubleLinkListQueueIsEmpty(queue))
    {
        doubleLinkListQueueTop(queue, (void **)&val);
        printf("val=%d", *val);
        doublelinklistQueuePop(queue);
    }

    doubleLinkListQueueDestroy(queue);

    return 0;
}